package com.phiture.erp.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

/**
 * @author YH
 * @date 2025/4/7
 */

@Getter
@AllArgsConstructor
public enum ErpMaterialCharTypeEnum {
    MATERIAL_MASTER(1, "主物料"),
    MAIN_AUXILIARY_MATERIAL(2, "主辅料"),
    PRINCIPAL_INGREDIENT(3,"主参配料");

    private final Integer type;
    private final String desc;

    public static final Map<Integer, String> MATERIAL_CHAR_TYPR_MAP = new HashMap<>(4);
    static {
        for (ErpMaterialCharTypeEnum typeEnum : ErpMaterialCharTypeEnum.values()) {
            MATERIAL_CHAR_TYPR_MAP.put(typeEnum.type, typeEnum.desc);
        }
    }
}
